# Contributor: Paul Bredbury <brebs@sent.com>
# Maintainer: Krassy Boykinov <kboykinov@teamcentrixx.com>
pkgname=libgxps
pkgver=0.3.2
pkgrel=3
pkgdesc="XPS documents library & conversion utilities"
url="https://wiki.gnome.org/action/show/Projects/libgxps"
arch="all"
license="LGPL-2.1-or-later"
makedepends="gobject-introspection-dev glib-dev gtk+3.0-dev libarchive-dev libjpeg-turbo-dev tiff-dev lcms2-dev meson"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/GNOME/libgxps/archive/$pkgver.tar.gz"

build() {
	abuild-meson . build
	ninja -v -C build/
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="b43716bb1c0c5017bcf4a9744010b6030051e794457e6f5e53a8543ad605255324112d94d150a580ad87afeb5d5092361cad17b6febacf7deefb25b23296a8ce  libgxps-0.3.2.tar.gz"
